#include <math.h>
#include <stdbool.h>


#define EPSILON     1e-6


bool FltCmp_IsZero(float a)
{
    return fabs(a) < EPSILON;
}


bool FltCmp_IsNotZero(float a)
{
    return fabs(a) > EPSILON;
}


bool FltCmp_IsEqual(float a, float b)
{
    return fabs(a - b) < EPSILON;
}


bool FltCmp_IsNotEqual(float a, float b)
{
    return fabs(a - b) > EPSILON;
}


bool FltCmp_IsAGreaterThanB(float a, float b)
{
    return a > b && fabs(a - b) > EPSILON;
}


bool FltCmp_IsAGreaterEqualB(float a, float b)
{
    return (a > b && fabs(a - b) > EPSILON) || (fabs(a - b) < EPSILON);
}


bool FltCmp_IsALessThanB(float a, float b)
{
    return a < b && fabs(a - b) > EPSILON;
}


bool FltCmp_IsALessEqualB(float a, float b)
{
    return (a < b && fabs(a - b) > EPSILON) || (fabs(a - b) < EPSILON);
}

